package com.sakura.dao;


import com.sakura.po.Actor;
import com.sakura.po.BeComment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface BeCommentMapper {
    //添加数据
    int insertBeComment(BeComment comment);

    int insertSelective(BeComment comment);

    int updateByPrimaryKeySelective(BeComment comment);

    int updateByPrimaryKey(BeComment comment);

    //根据主键id获取一条数据
    BeComment getBecomment(Integer id);

    //根据主键修改信息
    int updateBeComment(BeComment comment);

    //根据主键删除信息
    int deleteBeComment(Integer id);

    //根据条件查询表中信息
    List<BeComment> getAllBeComments(BeComment beComment);
}
